using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TestSystem.BLL.TestSystem;

public partial class Controls_SubjectQuizes : System.Web.UI.UserControl
{
    private int subjectID;

    public int SubjectID
    {
        get { return subjectID; }
        set { subjectID = value; }
    }
    

    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            List<Quiz> quizes = Quiz.GetBySubjectID(SubjectID);
            dlQuizes.DataSource = quizes;
            dlQuizes.DataBind();
        }
    }
}
